<?php $this->fetch('public/head') ?>
    <div class="layui-tab layui-tab-brief">
        <div class="layui-tab-content">
            <!-- 内容主体区域 -->
            <table class="layui-table" lay-skin="line" lay-even>
                <colgroup>
                    <col width="150">
                    <col>
                </colgroup>
                <tbody>
                <tr>
                    <td>标题：</td>
                    <td><?php echo $rows['title'] ?></td>
                </tr>
                <tr>
                    <td>提议人：</td>
                    <td><?php echo $rows['user_name'] ?></td>
                </tr>
                <tr>
                    <td>实施改善部门：</td>
                    <td><?php echo $rows['department'] ?></td>
                </tr>
                <tr>
                    <td>问题类型：</td>
                    <td><?php echo $rows['question_classfy'] ?></td>
                </tr>
                <tr>
                    <td>是否形成知识产权：</td>
                    <td><?php echo $rows['is_right']==1?"是":"否" ?></td>
                </tr>
                <?php if($rows['is_right'] ==1){?>
                <tr>
                    <td>问题类型：</td>
                    <td><?php echo $rows['right_type']==1?"专利":"商业秘密" ?></td>
                </tr>
    <?php }?>
                <tr>
                    <td>问题描述：</td>
                    <td><?php echo $rows['problem_content'] ?>
                    </br>
                    <?php if ($rows['_problem_file_url']) { ?>
                    <a class="layui-upload-button" href="<?php echo $rows['_problem_file_url'] ?>">查看附件</a>
                    <?php } ?>
                    </td>
                </tr>
                <tr>
                    <td>解决办法：</td>
                    <td><?php echo $rows['solution_content'] ?>
                    </br>
                    <?php if ($rows['_solution_file_url']) { ?>
                        <a class="layui-upload-button" href="<?php echo $rows['_solution_file_url'] ?>">查看附件</a>
                    <?php } ?>
                    </td>
                </tr>
                <?php if ($rows['partners']) { ?>
                    <tr>
                        <td>提交人申请伙伴：</td>
                        <td><?php echo $rows['partners'] ?></td>
                    </tr>
                <?php } ?>
                <?php if ($rows['complete_user_name']) { ?>
                    <tr>
                        <td>指定完成人员：</td>
                        <td><?php echo $rows['complete_user_name'] ?></td>
                    </tr>
                <?php } ?>
                <?php if ($rows['hope_time']) { ?>
                    <tr>
                        <td>指定完成时间：</td>
                        <td><?php echo $rows['hope_time'] ?></td>
                    </tr>
                <?php } ?>
                <?php if ($rows['adopt_reason']) { ?>
                    <tr>
                        <td>部门领导意见：</td>
                        <td><?php echo $rows['adopt_reason'] ?></td>
                    </tr>
                <?php } ?>
                <?php if ($rows['class_reason']) { ?>
                    <tr>
                        <td>分管领导意见：</td>
                        <td><?php echo $rows['class_reason'] ?></td>
                    </tr>
                <?php } ?>
                <?php if ($rows['manager_reason']) { ?>
                    <tr>
                        <td>总经理意见：</td>
                        <td><?php echo $rows['manager_reason'] ?></td>
                    </tr>
                <?php } ?>
                <?php if ($rows['finish_time']) { ?>
                    <tr>
                        <td>完成时间：</td>
                        <td><?php echo $rows['finish_time'] ?></td>
                    </tr>
                <?php } ?>
                <tr>
                    <td>时间进度：</td>
                    <td>
                        <?php $log = json_decode($rows['log'],true)?>
                        <ul class="layui-timeline">
                            <?php foreach ($log as $v){?>
                            <li class="layui-timeline-item">
                                <i class="layui-icon layui-timeline-axis"></i>
                                <div class="layui-timeline-content layui-text">
                                    <h3 class="layui-timeline-title"><?php echo date('Y-m-d H:i:s',$v['times'])?></h3>
                                    <p>
                                        <?php echo $v['user_name']?> <em><?php echo $v['message']?></em>
                                        <br><?php echo $v['content']?>
                                    </p>
                                </div>
                            </li>
                            <?php }?>
                        </ul>
                    </td>
                </tr>
                </tbody>
            </table>

        </div>
    </div>
<?php $this->fetch('public/script') ?>